package com.jwsoft.manager.common.enums;

public enum DisposeStatusTypeEnum {
    DCL("0", "待处理"),
    JXZ("1", "进行中"),
    YWC("2", "已完成"),
    WX("3", "无效");
    private String type;
    private String name;

    private DisposeStatusTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static DisposeStatusTypeEnum getByType(String type) {
        for (DisposeStatusTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
